package com.igeekhome.ccs.controller;


import com.igeekhome.ccs.entity.CustomerService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.igeekhome.ccs.biz.Impl.CustomerServiceBizImpl;
@RequestMapping("/user")
@Controller
public class PermissionController {
    @Autowired
    CustomerServiceBizImpl csbi;

    @RequiresPermissions("user:list")
    @ResponseBody
    @RequestMapping("/show")
    public String showUser() {

        String username = (String) SecurityUtils.getSubject().getPrincipal();

        return "这是学生信息"+username;
    }
}

